<?php
namespace controller\index;

class index{
    public function __contruct(){
    }
    public function index(){
        // 设置模板引擎参数
        $config = [
            'view_path'	    =>	'./templates/',
            'cache_path'	=>	'./runtime/',
            'view_suffix'   =>	'html',
        ];
        $template = new \think\Template($config);
        $template->fetch('index');
    }

}